﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_Study : DLL.MyAdminPage
{
	private int nTrainingCoursewareID = 0;
	private DLL.TrainingCourseware.Component clsTrainingCoursewareComp;
	private DLL.Courseware.Component clsCoursewareComp;

	protected void Page_Load(object sender, EventArgs e)
	{
		DLL.TrainingCourseware.Entity clsTrainingCourseware = new DLL.TrainingCourseware.Entity();
		DLL.Courseware.Entity clsCoursewareEntity = new DLL.Courseware.Entity();

		nTrainingCoursewareID = Convert.ToInt32(Request["TrainingCoursewareID"]);

		clsTrainingCourseware = clsTrainingCoursewareComp.GetOne(nTrainingCoursewareID);
		clsCoursewareEntity = clsCoursewareComp.GetOne(clsTrainingCourseware.CoursewareID);

		iFrame.Attributes.Add("src", "../CuPlay/OnLinePlay.aspx?Path=" + clsCoursewareEntity.Path);
		iFrameTime.Attributes.Add("src", "CumulativeTime.aspx?TrainingID=" + clsTrainingCourseware.TrainingID.ToString());
	}

	protected override void OnInit(EventArgs e)
	{
		clsTrainingCoursewareComp = new DLL.TrainingCourseware.Component(Page);
		clsCoursewareComp = new DLL.Courseware.Component(Page);

		base.OnInit(e);
	}
}